import axios from "@/setting/axios";

//查询学生列表信息接口
export function getAllList(params) {
  return axios.get("/admin/showStudent", { params });
}

// 新增（单个）学生账户接口
export function addInfo(data) {
  console.log(`output->addInfo`, data);
  return axios.put("/admin/student/info", data);
}

// 删除（单个）学生账户接口
export function deleteInfo(params) {
  return axios.delete("/admin/student/info", { params });
}

// 修改（单个）学生账户接口
export function updateInfo(data) {
  return axios.post("/admin/student/info", data);
}

// 重置密码
export function resetPasswords(data) {
  return axios.post("/admin/student/reset", data);
}

// 学生信息Excel文件导出接口
export function getExcel() {
  // console.log(`output->getStudentList`, params);
  return axios.get("/admin/excel/export/student", { responseType: "blob" });
}
